package example;
import facecat.FaceCatScript;
import facecat.topin.core.*;
import facecat.topin.xml.*;
import facecat.topin.tab.*;
import facecat.topin.date.*;

/*
* 日历示例
*/
public class CalendarExample extends FCUIXml
{
     /*
     * 加载Xml
     * @param fileName 文件名
     * @param view 视图名称
     */
   public void loadXml(String fileName, FCView view)
   {
       setScript(new FaceCatScript(this));
       super.loadXml(fileName, view);
       //获取第二页
        FCTabPage tabPage = getTabPage("TabPage2");
        FCCalendar calendar = new FCCalendar();
        calendar.setLocation(new FCPoint(100, 100));
        calendar.setSize(new FCSize(250, 300));
        tabPage.addView(calendar);
   }
}

